const state = {
  show: true
}

const getters = {
  show: (state) => {
    return state.show
  }
}

const actions = {
  hideNav({commit}) {
    commit('hideNav')
  },
  showNav({commit}) {
    commit('showNav')
  }
}

const mutations = {
  hideNav(state) {
    state.show = false
  },
  showNav(state) {
    state.show = true
  }
}

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations
}
